package com.lianda.async.callback;

import com.lianda.async.worker.WorkResult;

@FunctionalInterface
public interface ICallback<T, V> {

    /**
     * 任务开始
     */
    default void begin() {

    }

    /**
     * Worker的Action执行完后，就给value存入值
     * @param success
     * @param param
     * @param workResult
     */
    void result(boolean success, T param, WorkResult<V> workResult);
}
